<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <script>
        let num=prompt('输入数字')
        num = num<10?0+num:num
        alert(num)
    </script>
</body>
</html>